<?php

namespace App\Models\Admin;

use Illuminate\Database\Eloquent\Model;

class GoodsNonstandardSpu extends Model
{
    protected $table = 'goods_nonstandard_spu';

    protected $dateFormat = 'U';

    public $timestamps = true;

    protected $guarded = [];

    public function spuUnit()
    {
        return $this->hasOne(GoodsDatum::class,'id','unit');
    }

    public function spuName()
    {
        return $this->hasOne(GoodsDatum::class,'id','spu_name');
    }
}
